Depicter\Database\Repository\DocumentRepository C

Total Complexity 115
Dependencies 8
Dependents 3
Total lines 833
Lines of code 396
Logical lines of code 211
Comment lines 307
Methods 40
Properties 1

Methods 40

Method Rating Maintainability Complexity Lines of code
getList()
A
43 14 44
saveEditorData()
A
47 9 37
duplicate()
A
49 9 30
revert()
A
51 8 24
findOne()
S
58 5 15
makeSlug()
S
59 5 15
geContent()
S
60 5 13
update()
S
63 4 10
getLastPublishedAt()
S
67 4 7
delete()
S
62 3 11
find()
S
67 3 7
isPublishedBefore()
S
65 3 10
changeSlug()
S
65 3 9
changeRevisionsStatus()
S
64 3 9
draftFields()
S
60 2 13
checkSlug()
S
63 2 11
checkRevisionsLimit()
S
69 2 6
getPreviewImageUrl()
S
70 2 6
select()
S
70 2 5
addRevision()
S
65 2 9
getStatus()
S
69 2 7
getFieldValue()
S
71 2 6
isPublished()
S
69 2 7
rename()
S
71 2 6
getCurrentUserId()
S
79 2 3
defaultFields()
S
59 1 15
create()
S
59 1 14
getPreviewImagePath()
S
79 1 3
savePreviewImage()
S
72 1 6
__construct()
S
80 1 3
getLastDocument()
S
79 1 3
getRecentRevision()
S
73 1 4
getMergedFields()
S
74 1 4
document()
S
81 1 3
findOrCreate()
S
75 1 4
findById()
S
80 1 3
save()
S
76 1 4
all()
S
81 1 3
getParsedEditorContent()
S
75 1 4
getPreviewRelativeImagePath()
S
80 1 3